package org.jb.coinche.client.gin;

import org.jb.coinche.client.NotificationStarter;
import org.jb.coinche.client.gui.user.LoginPanelImpl;
import org.jb.coinche.client.user.Login;
import org.jb.coinche.client.user.LoginListener;
import org.jb.coinche.client.user.LoginPanel;
import org.jb.coinche.client.user.UserLogin;
import org.jb.coinche.client.user.impl.LoginImpl;

import com.google.gwt.inject.client.AbstractGinModule;

public class UserModule extends AbstractGinModule {

	@Override
	protected void configure() {
		bind(Login.class).to(LoginImpl.class);
		bind(String.class).annotatedWith(UserLogin.class).toProvider(LoginImpl.class);
		
		bind(LoginPanel.class).to(LoginPanelImpl.class);
		bind(LoginListener.class).to(NotificationStarter.class);
	}
}
